<!DOCTYPE html>
<html>
<head>
    <title>投票列表</title>
</head>
<body>
    <h1>投票列表</h1>
    <a href="{% url 'polls:add_question' %}">添加新问题</a>
    <ul>
        {% for question in latest_question_list %}
            <li>
                <a href="{% url 'polls:detail' question.id %}">{{ question.question_text }}</a>
                <small>(发布于: {{ question.pub_date }})</small>
            </li>
        {% empty %}
            <li>暂无投票问题</li>
        {% endfor %}
    </ul>
</body>
</html>